package demo.java8;

/**
 * Created by zhangyanfei on 2017/9/15.
 *
 * @author zhangyanfei
 * @date 2017/09/15
 */
public class Person {
    private int id;

    private String name;

    private int age;

    public Person() {}

    ;

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Person{" +
            "name='" + name + '\'' +
            '}';
    }
}
